package YAPserver.mods;

import YAPenvironment.YAPconstant.ModState;
import YAPserver.gameObjects.Mod;
import YAPserver.logic.GameModifier;
import YAPserver.logic.Player;
/**
 * A local ModBehaviour.
 * When this modBehaviour's modify method is called the specified player's slider's length is doubled.
 * The demodify method is empty.
 * @author Daniel
 *
 */
public class ModSldLengthDouble extends AbstractStandardMod{

	@Override
	public void modify(Mod mod, GameModifier gameMod, Player player) {
		super.modify(mod, gameMod, player);
		gameMod.setSliderLength(player.getSlider(), 2);
//		gameMod.removeModMoving(mod);
	}

	@Override
	public void deModify(Mod mod, GameModifier gameMod, Player player) {
		//don't deModify
	}

	@Override
	public ModState getType() {
		return ModState.player;
	}

}
